import { ComponentLib, UIComponentLibs } from '@/config/config';
import { defineStore } from 'pinia';

export const useThemeStore = defineStore('theme', {
  state: () => ({
    theme: ComponentLib, // 默认主题
  }),
  actions: {
    setTheme(theme: UIComponentLibs) {
      this.theme = theme;
    },
  },
  getters: {
    getTheme(): UIComponentLibs {
      return this.theme;
    },
    
  },
});